<!DOCTYPE html>
<html lang="ru">
<head>
	<meta charset="utf-8">
	<title>Goldentime</title>
	<script type="text/javascript" src="template/js/jquery.js"></script>
	<script type="text/javascript" src="template/js/core.js"></script>
	<script type="text/javascript" src="template/js/location.js"></script>
	<link rel="stylesheet" href="template/style.css" type="text/css" media="screen" />
</head>
<body>
<header>
	<?php
		include 'library/core.php';
	
		/*$admin_obj = new admin();*/
	?>
	<div class="menu_bg">
		<div class="logo">
			<a href="index.php" title="Goldentime"><img src="images/header/logo.png" alt="Goldentime"/></a>
		</div>
		<?php if(isset($_SESSION['user']['id'])): ?>
		<nav>
			<ul>
				<?php if(!empty($_SESSION['user']['id'])): ?><li><a href="admin/profile.php?action=cabinet">Перейти в кабинет</a></li><?php endif; ?>
			</ul>
		</nav>
		<?php endif; ?>
		<?php
			if(!isset($_SESSION['user']['id'])): ?>
			<div class="auth">
				<a href="register.php" class="user-register"></a>
				<a href="#" class="user-login"></a>
			</div>
		<?php endif; ?>
	</div>
</header>
<section class="homepage">
	<div class="main-image">
	
	</div>
	<img src="images/content/USR.png" alt="USR" id="USR-big" class="icon usr"/>
	<img src="images/content/moldavian.png" alt="moldavian" id="moldavian-big" class="icon moldavian"/>
	<img src="images/content/georgian.png" alt="georgian" id="georgian-big" class="icon georgian"/>
	<img src="images/content/lithuania.png" alt="lithuania" id="lithuania-big" class="icon lithuania"/>
	<img src="images/content/ukrainian.png" alt="ukrainian" id="ukrainian-big" class="icon ukrainian"/>
	<img src="images/content/kyrgyz.png" alt="kyrgyz" id="kyrgyz-big" class="icon kyrgyz"/>
	<img src="images/content/armenian.png" alt="armenian" id="armenian-big" class="icon armenian"/>
	<img src="images/content/kazakh.png" alt="kazakh" id="kazakh-big" class="icon kazakh"/>
	<img src="images/content/byelorussian.png" alt="byelorussian" id="byelorussian-big" class="icon byelorussian"/>
	<img src="images/content/estonia.png" alt="estonia" id="estonia-big" class="icon estonia"/>
	<img src="images/content/azerbaijan.png" alt="azerbaijan" id="azerbaijan-big" class="icon azerbaijan"/>
	<img src="images/content/turkmen.png" alt="turkmen" id="turkmen-big" class="icon turkmen"/>
	<img src="images/content/russian.png" alt="russian" id="russian-big" class="icon russian"/>
	<img src="images/content/tajik.png" alt="tajik" id="tajik-big" class="icon tajik"/>
	<img src="images/content/latvian.png" alt="latvian" id="latvian-big" class="icon latvian"/>
	<img src="images/content/uzbec.png" alt="uzbec" id="uzbec-big" class="icon uzbec"/>
</section>
<footer>
	<div class="in">
		<span>&copy;2010-2012. <a href="index.php" title="ЗОЛОТОЕ ВРЕМЯ">ЗОЛОТОЕ ВРЕМЯ. </a> Все права защищены.</span>
		<div class="counters">
			<a href="#">
				<img src="images/footer/counter.jpg" alt=""/>
			</a>
		</div>
		<?php if(isset($_SESSION['user']['id'])): ?>
		<nav>
			<ul>
				<?php
					$mas = $admin_obj->in_menu();
					if($mas != false){
						for ($i=0; $i<count($mas);$i++){
							echo '<li><a href="page.php?idpage='.$mas[$i]['id'].'"title="'.$mas[$i]['title'].'">'.$mas[$i]['title'].'</a></li>';
						}
					}						
				?>
			</ul>
		</nav>
		<?php endif; ?>
	</div>
</footer>
</body>
</head>